using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public static class TMPFontSetting
{
    public static void SetOutline(TMP_Text tmp, float width, Color color)
    {
        var mat = new Material(tmp.fontMaterial);
        mat.SetFloat(ShaderUtilities.ID_FaceDilate, width);
        mat.SetFloat(ShaderUtilities.ID_OutlineWidth, width);
        mat.SetColor(ShaderUtilities.ID_OutlineColor, color);
        tmp.fontMaterial = mat;
    }
}
